package com.happe.foodeasy.constraint.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used to mark the number type,for example
 * int long float.
 * Created by wubin on 2016-05-20.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NumberTypeMetadata {
    /**
     * This method is used to set the digit's upper limit,
     * if value is -1, means positive infinite.
     * @return
     */
    int digitUpperLimit() default -1;

    int decimalLength() default 0;
}
